#ifndef _BSP_CAN_H
#define _BSP_CAN_H

#ifdef  __cplusplus
    extern "C" {
#endif
/*-----------------------------------------------------------------------
|                               Includes                                |
-----------------------------------------------------------------------*/
#include "can.h"
/*-----------------------------------------------------------------------
|                                define                                 |
-----------------------------------------------------------------------*/

extern CAN_HandleTypeDef hcan;
extern CAN_RxHeaderTypeDef RxHeader;
extern uint32_t TxMailbox;
extern float motor_temperature;
/*-----------------------------------------------------------------------
|                             API FUNCTION                              |
-----------------------------------------------------------------------*/
void bsp_can_init(void);
void CAN_Send_Data(uint8_t id, uint8_t cmd, const uint8_t* data);

#ifdef __cplusplus
}
// C++ code
void HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef* CanHandle);


#endif
#endif
